var regForm = $(document.forms.regForm);
regForm.bootstrapValidator({
  fields: {
    hdlUserName: {
      validators: {
        callback: {
          message: '不允许注册管理员账户',
          callback: function(value, validator) {
            return !value.startsWith("admin");
          }
        },
        remote: {
          type: 'POST',
          url: 'check-name.let',
          message: '用户名已经被注册了',
          delay: 1000
        }
      }
    }
  }
})